/*
 * Flowable CMMN REST API
 * # flowable / flowəb(ə)l /    - a compact and highly efficient workflow and Business Process Management (BPM) platform for developers, system admins and business users.  - a lightning fast, tried and tested BPMN 2 process engine written in Java. It is Apache 2.0 licensed open source, with a committed community.  - can run embedded in a Java application, or as a service on a server, a cluster, and in the cloud. It integrates perfectly with Spring. With a rich Java and REST API, it is the ideal engine for orchestrating human or system activities.
 *
 * OpenAPI spec version: v1
 *
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.ibm.risk.irmp.workflow.client.flowable.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;

/**
 * CaseDefinitionResponse
 */

public class CaseDefinitionResponse {
  @JsonProperty("id")
  private String id = null;

  @JsonProperty("url")
  private String url = null;

  @JsonProperty("key")
  private String key = null;

  @JsonProperty("version")
  private Integer version = null;

  @JsonProperty("name")
  private String name = null;

  @JsonProperty("description")
  private String description = null;

  @JsonProperty("tenantId")
  private String tenantId = null;

  @JsonProperty("deploymentId")
  private String deploymentId = null;

  @JsonProperty("deploymentUrl")
  private String deploymentUrl = null;

  @JsonProperty("resource")
  private String resource = null;

  @JsonProperty("diagramResource")
  private String diagramResource = null;

  @JsonProperty("category")
  private String category = null;

  @JsonProperty("graphicalNotationDefined")
  private Boolean graphicalNotationDefined = null;

  @JsonProperty("startFormDefined")
  private Boolean startFormDefined = null;

  public CaseDefinitionResponse id(String id) {
    this.id = id;
    return this;
  }

   /**
   * Get id
   * @return id
  **/
  @ApiModelProperty(example = "oneTaskCase:1:4", value = "")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public CaseDefinitionResponse url(String url) {
    this.url = url;
    return this;
  }

   /**
   * Get url
   * @return url
  **/
  @ApiModelProperty(example = "http://localhost:8182/cmmn-repository/case-definitions/oneTaskCase%3A1%3A4", value = "")
  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }

  public CaseDefinitionResponse key(String key) {
    this.key = key;
    return this;
  }

   /**
   * Get key
   * @return key
  **/
  @ApiModelProperty(example = "oneTaskCase", value = "")
  public String getKey() {
    return key;
  }

  public void setKey(String key) {
    this.key = key;
  }

  public CaseDefinitionResponse version(Integer version) {
    this.version = version;
    return this;
  }

   /**
   * Get version
   * @return version
  **/
  @ApiModelProperty(example = "1", value = "")
  public Integer getVersion() {
    return version;
  }

  public void setVersion(Integer version) {
    this.version = version;
  }

  public CaseDefinitionResponse name(String name) {
    this.name = name;
    return this;
  }

   /**
   * Get name
   * @return name
  **/
  @ApiModelProperty(example = "The One Task Case", value = "")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public CaseDefinitionResponse description(String description) {
    this.description = description;
    return this;
  }

   /**
   * Get description
   * @return description
  **/
  @ApiModelProperty(example = "This is a case for testing purposes", value = "")
  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public CaseDefinitionResponse tenantId(String tenantId) {
    this.tenantId = tenantId;
    return this;
  }

   /**
   * Get tenantId
   * @return tenantId
  **/
  @ApiModelProperty(value = "")
  public String getTenantId() {
    return tenantId;
  }

  public void setTenantId(String tenantId) {
    this.tenantId = tenantId;
  }

  public CaseDefinitionResponse deploymentId(String deploymentId) {
    this.deploymentId = deploymentId;
    return this;
  }

   /**
   * Get deploymentId
   * @return deploymentId
  **/
  @ApiModelProperty(example = "2", value = "")
  public String getDeploymentId() {
    return deploymentId;
  }

  public void setDeploymentId(String deploymentId) {
    this.deploymentId = deploymentId;
  }

  public CaseDefinitionResponse deploymentUrl(String deploymentUrl) {
    this.deploymentUrl = deploymentUrl;
    return this;
  }

   /**
   * Get deploymentUrl
   * @return deploymentUrl
  **/
  @ApiModelProperty(example = "http://localhost:8081/cmmn-repository/deployments/2", value = "")
  public String getDeploymentUrl() {
    return deploymentUrl;
  }

  public void setDeploymentUrl(String deploymentUrl) {
    this.deploymentUrl = deploymentUrl;
  }

  public CaseDefinitionResponse resource(String resource) {
    this.resource = resource;
    return this;
  }

   /**
   * Contains the actual deployed CMMN 1.1 xml.
   * @return resource
  **/
  @ApiModelProperty(example = "http://localhost:8182/cmmn-repository/deployments/2/resources/testCase.cmmn", value = "Contains the actual deployed CMMN 1.1 xml.")
  public String getResource() {
    return resource;
  }

  public void setResource(String resource) {
    this.resource = resource;
  }

  public CaseDefinitionResponse diagramResource(String diagramResource) {
    this.diagramResource = diagramResource;
    return this;
  }

   /**
   * Contains a graphical representation of the case, null when no diagram is available.
   * @return diagramResource
  **/
  @ApiModelProperty(example = "http://localhost:8182/cmmn-repository/deployments/2/resources/testProcess.png", value = "Contains a graphical representation of the case, null when no diagram is available.")
  public String getDiagramResource() {
    return diagramResource;
  }

  public void setDiagramResource(String diagramResource) {
    this.diagramResource = diagramResource;
  }

  public CaseDefinitionResponse category(String category) {
    this.category = category;
    return this;
  }

   /**
   * Get category
   * @return category
  **/
  @ApiModelProperty(example = "Examples", value = "")
  public String getCategory() {
    return category;
  }

  public void setCategory(String category) {
    this.category = category;
  }

  public CaseDefinitionResponse graphicalNotationDefined(Boolean graphicalNotationDefined) {
    this.graphicalNotationDefined = graphicalNotationDefined;
    return this;
  }

   /**
   * Indicates the case definition contains graphical information (CMMN DI).
   * @return graphicalNotationDefined
  **/
  @ApiModelProperty(value = "Indicates the case definition contains graphical information (CMMN DI).")
  public Boolean getGraphicalNotationDefined() {
    return graphicalNotationDefined;
  }

  public void setGraphicalNotationDefined(Boolean graphicalNotationDefined) {
    this.graphicalNotationDefined = graphicalNotationDefined;
  }

  public CaseDefinitionResponse startFormDefined(Boolean startFormDefined) {
    this.startFormDefined = startFormDefined;
    return this;
  }

   /**
   * Get startFormDefined
   * @return startFormDefined
  **/
  @ApiModelProperty(value = "")
  public Boolean getStartFormDefined() {
    return startFormDefined;
  }

  public void setStartFormDefined(Boolean startFormDefined) {
    this.startFormDefined = startFormDefined;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CaseDefinitionResponse caseDefinitionResponse = (CaseDefinitionResponse) o;
    return Objects.equals(this.id, caseDefinitionResponse.id) &&
        Objects.equals(this.url, caseDefinitionResponse.url) &&
        Objects.equals(this.key, caseDefinitionResponse.key) &&
        Objects.equals(this.version, caseDefinitionResponse.version) &&
        Objects.equals(this.name, caseDefinitionResponse.name) &&
        Objects.equals(this.description, caseDefinitionResponse.description) &&
        Objects.equals(this.tenantId, caseDefinitionResponse.tenantId) &&
        Objects.equals(this.deploymentId, caseDefinitionResponse.deploymentId) &&
        Objects.equals(this.deploymentUrl, caseDefinitionResponse.deploymentUrl) &&
        Objects.equals(this.resource, caseDefinitionResponse.resource) &&
        Objects.equals(this.diagramResource, caseDefinitionResponse.diagramResource) &&
        Objects.equals(this.category, caseDefinitionResponse.category) &&
        Objects.equals(this.graphicalNotationDefined, caseDefinitionResponse.graphicalNotationDefined) &&
        Objects.equals(this.startFormDefined, caseDefinitionResponse.startFormDefined);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, url, key, version, name, description, tenantId, deploymentId, deploymentUrl, resource, diagramResource, category, graphicalNotationDefined, startFormDefined);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CaseDefinitionResponse {\n");

    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    url: ").append(toIndentedString(url)).append("\n");
    sb.append("    key: ").append(toIndentedString(key)).append("\n");
    sb.append("    version: ").append(toIndentedString(version)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    tenantId: ").append(toIndentedString(tenantId)).append("\n");
    sb.append("    deploymentId: ").append(toIndentedString(deploymentId)).append("\n");
    sb.append("    deploymentUrl: ").append(toIndentedString(deploymentUrl)).append("\n");
    sb.append("    resource: ").append(toIndentedString(resource)).append("\n");
    sb.append("    diagramResource: ").append(toIndentedString(diagramResource)).append("\n");
    sb.append("    category: ").append(toIndentedString(category)).append("\n");
    sb.append("    graphicalNotationDefined: ").append(toIndentedString(graphicalNotationDefined)).append("\n");
    sb.append("    startFormDefined: ").append(toIndentedString(startFormDefined)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}
